﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaccaratRally.DataKernel.Entity;
using BaccaratRally.DataKernel.Service;

namespace BaccaratRally.Service.Api
{
    public partial class OnStart : System.Web.UI.Page
    {
        public String AccountName;
        public String AccountPos;

        protected void Page_Load(object sender, EventArgs e)
        {
            AccountName = Request.QueryString["AccountName"];
            AccountPos = Request.QueryString["AccountPos"];

            AccountService aservice = ServiceFactory.CreateService<AccountService>();
            aservice.OnStart(AccountName, AccountPos);

            Response.Write("OK");
            Response.End();

        }
    }
}